﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000231 RID: 561
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueFinishCurRoomNotify : IMessage<ChessRogueFinishCurRoomNotify>, IMessage, IEquatable<ChessRogueFinishCurRoomNotify>, IDeepCloneable<ChessRogueFinishCurRoomNotify>, IBufferMessage
	{
		// Token: 0x17000758 RID: 1880
		// (get) Token: 0x06001924 RID: 6436 RVA: 0x00047CD9 File Offset: 0x00045ED9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueFinishCurRoomNotify> Parser
		{
			get
			{
				return ChessRogueFinishCurRoomNotify._parser;
			}
		}

		// Token: 0x17000759 RID: 1881
		// (get) Token: 0x06001925 RID: 6437 RVA: 0x00047CE0 File Offset: 0x00045EE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueFinishCurRoomNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700075A RID: 1882
		// (get) Token: 0x06001926 RID: 6438 RVA: 0x00047CF2 File Offset: 0x00045EF2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueFinishCurRoomNotify.Descriptor;
			}
		}

		// Token: 0x06001927 RID: 6439 RVA: 0x00047CF9 File Offset: 0x00045EF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueFinishCurRoomNotify()
		{
		}

		// Token: 0x06001928 RID: 6440 RVA: 0x00047D01 File Offset: 0x00045F01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueFinishCurRoomNotify(ChessRogueFinishCurRoomNotify other) : this()
		{
			this.levelInfo_ = ((other.levelInfo_ != null) ? other.levelInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001929 RID: 6441 RVA: 0x00047D36 File Offset: 0x00045F36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueFinishCurRoomNotify Clone()
		{
			return new ChessRogueFinishCurRoomNotify(this);
		}

		// Token: 0x1700075B RID: 1883
		// (get) Token: 0x0600192A RID: 6442 RVA: 0x00047D3E File Offset: 0x00045F3E
		// (set) Token: 0x0600192B RID: 6443 RVA: 0x00047D46 File Offset: 0x00045F46
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLevelInfo LevelInfo
		{
			get
			{
				return this.levelInfo_;
			}
			set
			{
				this.levelInfo_ = value;
			}
		}

		// Token: 0x0600192C RID: 6444 RVA: 0x00047D4F File Offset: 0x00045F4F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueFinishCurRoomNotify);
		}

		// Token: 0x0600192D RID: 6445 RVA: 0x00047D5D File Offset: 0x00045F5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueFinishCurRoomNotify other)
		{
			return other != null && (other == this || (object.Equals(this.LevelInfo, other.LevelInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600192E RID: 6446 RVA: 0x00047D90 File Offset: 0x00045F90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.levelInfo_ != null)
			{
				num ^= this.LevelInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600192F RID: 6447 RVA: 0x00047DCC File Offset: 0x00045FCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001930 RID: 6448 RVA: 0x00047DD4 File Offset: 0x00045FD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001931 RID: 6449 RVA: 0x00047DDD File Offset: 0x00045FDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.levelInfo_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.LevelInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001932 RID: 6450 RVA: 0x00047E10 File Offset: 0x00046010
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.levelInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.LevelInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001933 RID: 6451 RVA: 0x00047E50 File Offset: 0x00046050
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueFinishCurRoomNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.levelInfo_ != null)
			{
				if (this.levelInfo_ == null)
				{
					this.LevelInfo = new ChessRogueLevelInfo();
				}
				this.LevelInfo.MergeFrom(other.LevelInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001934 RID: 6452 RVA: 0x00047EA4 File Offset: 0x000460A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001935 RID: 6453 RVA: 0x00047EB0 File Offset: 0x000460B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.levelInfo_ == null)
					{
						this.LevelInfo = new ChessRogueLevelInfo();
					}
					input.ReadMessage(this.LevelInfo);
				}
			}
		}

		// Token: 0x04000A78 RID: 2680
		private static readonly MessageParser<ChessRogueFinishCurRoomNotify> _parser = new MessageParser<ChessRogueFinishCurRoomNotify>(() => new ChessRogueFinishCurRoomNotify());

		// Token: 0x04000A79 RID: 2681
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000A7A RID: 2682
		public const int LevelInfoFieldNumber = 1;

		// Token: 0x04000A7B RID: 2683
		private ChessRogueLevelInfo levelInfo_;
	}
}
